/**
 *
 * @param {Object} service {docName:'服务名',layerId:'要素图层ID'}
 * @param {Array} fids [1,2,3]
 */

function delFeature({ fids, service, docLayer }) {
  var deleteService = new Zondy.Service.EditDocFeature(
    service.docName,
    service.layerId,
    {
      ip: 'localhost',
      port: '6163', //访问IGServer的端口号，.net版为6163，Java版为8089
    }
  )
  deleteService.deletes(fids.join(','), onPntSuccess(docLayer))
}

function onPntSuccess(docLayer) {
  return function (result) {
    if (result) {
      docLayer.refresh()
      alert('删除点要素成功')
    } else {
      alert('删除点要素失败')
    }
  }
}
